package com.yq.design.template;

/**
 * @ClassName AbstractClass
 * @Description 抽象类定义模板流程和每个项
 * @Author yaoqiang
 * @Date 2021/3/1 16:26
 * @Version 1.0
 */
public abstract class AbstractClass {
    public void template() {
        step1();
        step2();
        step3();
    }

    public void step1() {
        System.out.println("step1");
    }

    public void step2() {
        System.out.println("step2");
    }

    public void step3() {
        System.out.println("step3");
    }
}
